﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using cmsservice.Common;
using cmsservice.BLL;

/// <summary>
///LogService 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
//若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。 
// [System.Web.Script.Services.ScriptService]
public class LogService : System.Web.Services.WebService {

    public LogService () {

        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    [WebMethod]
    public void SSOLog(AssemblyLine c)
    {
        AssemblyLineBLL.AddAssembly(c);
    }

    [WebMethod(Description="Page:页面<br/>Method:方法名<br/>Msg:要保存的消息<br/>Cip:用户IP<br/>Uid:用户编号<br/>Args:SSO参数 ")]
    public void SSOLog2(string Page, string Method, string Msg, string Cip, string Uid, string Args)
    {
        AssemblyLine line = new AssemblyLine();
        line.Page = Page;
        line.Method = Method;
        line.Msg = Msg;
        line.Cip = Cip;
        line.OTime = DateTime.Now;
        line.Uid = Uid;
        line.Args = Args;
        AssemblyLineBLL.AddAssembly(line);
    }
}
